package com.hjc.dao;

import com.hjc.dao.user.Ink;

import java.awt.*;

/**
 * 彩色墨盒。ColorInk实现Ink
 */
public class ColorInk implements Ink {
    //打印采用彩色
    @Override
    public String getColor(int r, int g, int b) {
        Color color = new Color(r,g,b);

        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}
